import request from "@/utils/request";
// 医疗机构记分记录
export function medicalOrgScoring(query) {
  return request({
    url: "/zp/todoList/medicalOrgScoring",
    method: "get",
    params: query,
  });
}

// 医疗机构记分记录-修改待处置状态
export function updateMedicalOrgScoringDisposalStatus(data) {
  return request({
    url: `/zp/todoList/medicalOrgScoring/updateDisposalStatus`,
    method: "post",
    data: data,
  });
}

// 医师记分记录
export function medicalOrgPhysicianScoring(query) {
  return request({
    url: "/zp/todoList/medicalOrgPhysicianScoring",
    method: "get",
    params: query,
  });
}
// 医师记分记录-修改待处置状态
export function updateMedicalOrgPhysicianScoringDisposalStatus(data) {
  return request({
    url: `/zp/todoList/medicalOrgPhysicianScoring/updateDisposalStatus`,
    method: "post",
    data: data,
  });
}

// 医疗许可证备案管理
export function medicalOrgLicense(query) {
  return request({
    url: "/zp/todoList/medicalOrgLicense",
    method: "get",
    params: query,
  });
}

// 医师管理
export function physician(query) {
  return request({
    url: "/zp/todoList/physician",
    method: "get",
    params: query,
  });
}

// 更新医师证件有效期
export function physicianUpdateExpireDate(id) {
  return request({
    url: `/zp/todoList/physician/${id}/updateExpireDate`,
    method: "post",
  });
}

// 护士管理
export function nurse(query) {
  return request({
    url: "/zp/todoList/nurse",
    method: "get",
    params: query,
  });
}

// 更新护士证件有效期
export function nurseUpdateExpireDate(id) {
  return request({
    url: `/zp/todoList/nurse/${id}/updateExpireDate`,
    method: "post",
  });
}

// 医疗废弃物
export function wasteManage(query) {
  return request({
    url: "/zp/todoList/wasteManage",
    method: "get",
    params: query,
  });
}

// 消毒设备
export function medicalOrgDisinfectDeviceService(query) {
  return request({
    url: "/zp/todoList/medicalOrgDisinfectDeviceService",
    method: "get",
    params: query,
  });
}

// 疫苗接种
export function vaccineTemp(query) {
  return request({
    url: "/zp/todoList/vaccineTemp",
    method: "get",
    params: query,
  });
}

// 医师开药监测
export function abnormalPrescription(query) {
  return request({
    url: "/zp/todoList/abnormalPrescription",
    method: "get",
    params: query,
  });
}

// 医师开药监测-上传材料
export function abnormalPrescriptionUploadCorrection(data) {
  return request({
    url: `/zp/todoList/abnormalPrescription/uploadCorrection`,
    method: "post",
    data,
  });
}
